<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Form</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <!-- Latest compiled and minified CSS -->
    <!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css">-->
    <link rel="stylesheet" href="../bootstrap-3.3.7-dist/css/bootstrap.css">
    <!-- Optional theme -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
    <!-- Latest compiled and minified JavaScript -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style type="text/css">

    </style>
</head>
<body>
<div class="container">
    <form role="form" class="form-horizontal">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">名称</label>
            <div class="col-sm-4 has-error">
                <input type="text" id="name" placeholder="请输入名称" class="form-control input-sm">
            </div>
            <span class="col-sm-offset-2 col-sm-10 help-block">姓名长度不能超过10个字符</span>
        </div>
        <div class="form-group">
            <div class="radio-inline col-sm-offset-2">
                <label>
                    <input type="radio" name="sex" value="man" checked disabled>男
                </label>
            </div>
            <div class="radio-inline">
                <label>
                    <input type="radio" name="sex" value="woman" checked disabled>女
                </label>
            </div>
        </div>
        <div class="form-group">
            <div class="checkbox-inline col-sm-offset-2">
                <label>
                    <input type="checkbox" name="hobby" value="option1"> 选项 1
                </label>
            </div>
            <div class="checkbox-inline">
                <label>
                    <input type="checkbox" name="hobby" value="option2"> 选项 2
                </label>
            </div>
            <div class="checkbox-inline">
                <label>
                    <input type="checkbox" name="hobby" value="option3"> 选项 3
                </label>
            </div>
        </div>
        <div class="form-group">
            <label for="city" class="col-sm-2 control-label">城市</label>
            <div class="col-sm-10">
                <select id="city" class="form-control">
                    <option>上海</option>
                    <option>北京</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="desc" class="col-sm-2 control-label">自我介绍</label>
            <div class="col-sm-10">
                <textarea id="desc" rows="3" class="form-control"></textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn-info">提交</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>